﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.CompoundPattern
{
    /// <summary>
    /// 鸭子叫 主题
    /// </summary>
    public interface IQuackObservable
    {
        /// <summary>
        /// 注册观察者
        /// </summary>
        /// <param name="observer"></param>
        void RegisterObserver(Observer observer);

        /// <summary>
        /// 通知所有已注册的观察者
        /// </summary>
        void NotifyObservers();
    }
}
